<!--
 * @Author: lyc
 * @Date: 2020-11-23 16:59:21
 * @LastEditors: lyc
 * @LastEditTime: 2020-11-26 20:14:16
 -->
{% extends "global/Page.html" %} {% load otree static %} {% block title %} 登录
{% endblock %}
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
{% block content %}
 {% formfield player.userName %}
 {% formfield player.passWord %}

<div>{% next_button %}</div>

<script>
  let round = {{ round }}
  // 设置密码框
  $('#id_passWord').attr('type','password')
  if(round==1){
  }else if(round<4){
      alert('用户名密码不play_id正确，请重新输入')
  }else{
      {#页面加载完成后#}
      $(document).ready(()=>{
          $('button').attr("disabled",true )
          alert(`用户名密码不正确，请等待${(round-3)*10}秒后,重新输入`)
      })
       setTimeout(()=>{
          $('button').attr("disabled",false )
       },(round-3)*1000*10)
  }
</script>
{% endblock %}
